#ifndef STORAGE_LEVELDB_BLOOM_FILTER_H
#define STORAGE_LEVELDB_BLOOM_FILTER_H

#include <stdint.h>
#include <stddef.h>

#include "leveldb/options.h"

namespace leveldb {

class BloomFilter {
 public:
  // Initialize the BloomFilter with the specified capability
  BloomFilter(size_t capability);
	BloomFilter(char *data, int n) : bits_(data), size_(n) { }
  ~BloomFilter();
  size_t size() const { return size_; }

 private:
  friend struct BloomFilterBuilder;
  friend struct BloomFilterHash;

  char* bits_;
  size_t size_; 

  BloomFilter(const BloomFilter&);
  void operator=(const BloomFilter&);
};

} // namespace leveldb

#endif

